﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AdvancedCSharpFeatures
{
    class Program
    {
        static void Main(string[] args)
        {
            var students = new[] { new { FirstName = "Spas", LastName = "Delev", Age = 25 },
                                   new { FirstName = "Ivan", LastName = "Karadjov", Age = 23 },
                                   new { FirstName = "Boris", LastName = "Galchev", Age = 22 },
                                   new { FirstName = "Ivan", LastName = "Bandalovski", Age = 22 },
                                   new { FirstName = "Kostadin", LastName = "Stoyanov", Age = 22 },
                                   new { FirstName = "Todor", LastName = "Yanchev", Age = 22 },
                                   new { FirstName = "Rumen", LastName = "Trifonov", Age = 22 },
                                   new { FirstName = "Michel", LastName = "Platini", Age = 22 },
                                   new { FirstName = "Apostol", LastName = "Popov", Age = 22 },
                                   new { FirstName = "Kosta", LastName = "Yanev", Age = 22 },
                                   new { FirstName = "Emil", LastName = "Gargorov", Age = 22 },
                                   new { FirstName = "Gregory", LastName = "Nelson", Age = 22 },
                                };

            var queuedStudent = 
                from student in students
                where student.Age >= 18 && student.Age <= 22
                select student.FirstName + " " + student.LastName;
        }
    }
}
